package com.ushine.design.design.b_structural_type.d_decorator.b_example;

public class ScrollbBarDecorator extends ComponentDecorator {

    public ScrollbBarDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        super.display();
        setScroller();
    }

    public void setScroller() {
        System.out.println("为构件添加滚动条！");
    }
}
